From fcf3f35a24505688e9def12c2ee177e03093ed19 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 6 Sep 2009 08:22:09 +0000 Subject: [PATCH] Fixed regression likely from r55700, where $wgOut rev ID was not set for oldid=latest. (this took way too long to track down since the commit summary didn't mention the massive refactoring) --- includes/Article.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index beadcdb12d..8f6e33d61c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -809,7 +809,6 @@ class Article { $outputDone = false; while( !$outputDone && ++$pass ){ switch( $pass ){ - case 1: wfRunHooks( 'ArticleViewHeader', array( &$this, &$outputDone, &$useParserCache ) ); break; @@ -856,12 +855,13 @@ class Article { wfProfileOut( __METHOD__ ); return; } - + # If this "old" version is the current, then try the parser cache... if ( $oldid === $this->getLatest() && $this->useParserCache( false ) ) { $this->mParserOutput = $parserCache->get( $this, $parserOptions ); if ( $this->mParserOutput ) { wfDebug( __METHOD__.": showing parser cache for current rev permalink\n" ); $wgOut->addParserOutput( $this->mParserOutput ); + $wgOut->setRevisionId( $this->mLatest ); $this->showViewFooter(); $this->viewUpdates(); wfProfileOut( __METHOD__ ); -- 2.20.1